<?php
/********************************************************************************
 * File: config.inc
 * Desc: User configuration file.
 * 
 * Change   Date        By          Description
 * 1        05/13/2007  mcarruth    Created
 ********************************************************************************/

//
// User configuration section.
//
$config_siteTitle       = ""; // Required - used by all pages and RSS feed
$config_siteDescription = ""; // Required - used by RSS feed
$config_siteUrl         = ""; // Required - used by RSS feed
$config_flickrUserId    = ""; // Required - flickr user id (see http://idgettr.com/)
$config_mysqlUser       = ""; // Optional - used for caching images
$config_mysqlPassword   = ""; // Optional - used for caching images
$config_mysqlServer     = ""; // Optional - used for caching images
$config_mysqlDatabase   = ""; // Optional - used for caching images

//
// Do not edit anything below
//
require_once("phpFlickr-2.1.0/phpFlickr.php");
$config_flickrApiKey = "64735d606d8cc904a3f62d3ed56d56b9";
$f = new phpFlickr($config_flickrApiKey);

// Check for required user config settings
if (!$config_flickrUserId || !$config_siteTitle || !$config_siteDescription || !$config_siteUrl) {
   die("User configuration settings are not complete.  Please update the required settings in config.inc");
}

// Enable caching
if ($config_mysqlUser && $config_mysqlPassword && $config_mysqlServer && config_mysqlDatabase) {
   $config_mysqlConnection = "mysql://" . $config_mysqlUser . ":" . $config_mysqlPassword . "@" . $config_mysqlServer . "/" . $config_mysqlDatabase;
   $f->enableCache("db", $config_mysqlConnection);
}
?>


